added command type to packets