implemented basic sending