properly implemented cleaning old logs (#fixes 207)