use debug and environement vars