minor refactoring
support anomaly scores