refactoring include, mutex on cmd_args