remove unused variable
stricter protocol parsing