Revert "improve the send and get function"

This reverts commit 7707397178e99a32036e3154466093417a5524dd.