handle received packets in right order