better way to decode rule file
imporve RefControl rule file convert, close #23