add reg_rules class and process output class