add send functionality