changed report API and chart generator