added ability to read map from file