changed maximum length for keys to be backwards compatible