refactor map setting for extension