partial work on temp path (but need to make into multiple)