Do not rely on connect-like environments

fixes #3