make queued up events be processed in the correct order