option to send output to a dir