cleanup message passing