some minor modifications about loading map json and config