update logdir and kpf-file