move session messages to new API