server checks messages