move rules into file