bug fixes and channel simulator