hash should include cstring for strlen