set rules loader public, add tests
fix rules indentation