new way of extracting key prefixes for unbound keys implemented.