added returning channels, and parameters in error callback