throw exception if md5 is not defined