use no env vars
use better debug and environment handling