move hash to seperate module