removed testing code to test_commands.cpp