do not pass invalid commands coming from ws