real time scoring implementation + cloud messaging refactored