import and export rule file
support import RefControl, fix #11