clear server messages implementation