added mechanism for customizable scoring