changed getPath signature