add data convert
handle auth error
handle results with NULL values
fixbug: attempt to receive data on a closed socket