data communication and clean-up