my bad i ported toarray and getpath in by eye from a previous version, fixed now with test code in place. thanks