add compile map and inser mode save