added instance as optional parameter for messages