updated send signatures to use unsigned char