fix PATH_PREFIX and rename method