logging, md5 generation fixed