clean up pubsub modules