clened up unit kv file