add variable buflen to send