add exception MethodNotExposed in serialise