made channel an interface instead of byte array