handle wrong protocols gracefully