changed max number of characters in key to 1023