allow path as a parameter