forgot to set directory before; fixed this