handle invalid ops