added creation of data directory