fixed rolling file and gen bugs