handle invalid commands