rm debug stmt:
move aggregate metrics for charts to a model method (towards the goal of #141)