better upload md5 handling