f: pass implicity env to init_env(), catch init errors