set possible command response headers
added better command parsing and checking of valid input