improve error message when you have extra bytes