make load_command() and load_all_commands() standalone utilities