newest commit, fixed keylength()