support mapping_dir configuration