wrap live code behing flag