very primitive map file parser