use file to hold rule chain