extend to support normal key indexing