port more of rxtype anchor
small code refactor to rxtype anchor
fix copy-pasto
fixed copy-pasto again
Merge pull request #21 from zhuomingliang/patch-1

port more of rxtype anchor