fixed linting; create data dir if not exists;