added ability to load map files