support custom messages for client