file rotate works