working on ac metrics method
moved metrics from protected to public
bugfix
bugfix
bugfix
bugfix
bugfix
bugfix
bugfix
bugfix
bugfix
bugfix
error handling + metricsall