refactored continuous map enter function. fully mocked unit tests.