changing reference of "command" to void* for more dynamic commands (a phase in getting rid of strcasecmp()s)