add support for the optional channel parameter to the register method