cleaned up receiving messages