moved logging, fixed a bad path