added comments
honor openshift env vars above all else
resolve encoding errors