use path in func args