making getPath global
better inheritance system