make sure data directory is created