added environment check for use inside of docker