fixed some stuff regarding the backup and log rotation