refactored mapfile parsing