sth to file handling and preparation to building chart