change to data directory before doing anything