added command unmarshalling