added md5 check for upload