fixed bugs in zipping and rolling files