fixed backup routine