cleanup unused code. change checkpoint mechanism to save messages received (at localQueue) instead.