added mounting of the data dir, added changing of data dir permissions