tmp adds data dir to gitignore
reorganizing methods