refactored map code into separate files