added chksum features, fixed logging bugs