[Rating] refactoring and new rating actions