now uses Path object for its path