added getMaxKeys and getKeySize