added infrastructure to draw charts