call apply after update the message
add session service