forgot to change back to os.environ
cleanup, debugging half lists
small formatting changes, better error messages and checking
updating pipeline branch