added minimum error handling for scoring