switched to storing the mapfile in json for added goodness. Automatic conversion too!