adding support for in/out-put-path as dirs