moving data dir createion to config