fixes for errors and warnings, and move from pathos ==> path