moved hash_hack out of all the methods and stuck it in validate_payload.