getpath() and fixes