refactor receiver

make it more clear.

Signed-off-by: Jianmin Zhou <toandrew@infthink.com>