prepare for rules building refactoring