check for env when registering extension