add function
 - hex string to buffer
 - buffer to hexstring