set channel opts, error fixes