refactor variable name
add root directory option to 'run' command