directory -> datadir