first working verion with rrdtool