receiver: use util.inherits to inheritance