throw exception if sth cannot be serialized. we need to understand it before it goes to the client