fix env vars and paths