more logging
fixing md5 function on client