fix getPath() for real