fixes to server to insure certain number of messages only