fixing messaging server script