ensure proper pending message queuing