fixed bug in kts backup and a little more logging