take path as 1st argument