more rules definition + twoProfiles + bugfix