cleaning rrd module, and autoresize on resize event