fix listPath() to work on single objects
remove unused functions