pass env to extensions