change some std::oldmap into core::hashmap