added support for setting the from/to party roles when sending messages