moving num_dir in config