adding a file for global subcommand values
removing some unused imports
adding global values to tests
making threads argument global