replaced $enable_as with $as_channels