if the data dir not exsits, then create one first