debug logging
wip
Remove old way of doing env vars