capturing env at startup, closes #81