first version, everything works except charts