server side messaging functionality