config flatten, fix #7