enable dir and user option to exec command