backup script fixes