move datadir setting to server