if directory is none, do not save the results of whdsp