added reader for rule configurations
fixed compile error