change logdir to log_dir when calling config from init