added module_key as parameter to generate hash