changing channel to a callback so we can use params from the request