improved logging and zipping