rewrite flooredLog
cleanup partially