- subsitute the REST functions by the messages in the MessageHandler