ADD: [client] refactor send helper function