52214657 move rules to config file