changed sha512 to md5 and added FIXME