initial rule creation based on datafile