-- assigning send-fn after plugin has attached itself