added: check if data/ dir exists