- move path manipulation to API