start adding cookie support
#16 fix the sending of data