generate hash kinda sorta works