removed weird type declaration in the rsCfg and added rules to make it more polymorphic