sorted out alot of ordering of messages