cleanup, add ranges, add md5