started mongo receiver refactor for testing