[FOLD] rotates and deletes properly. [TODO] clean up logging