fixed (hopefully) get_messages() in server mode