update logdir and paramfile