add indices.get and indices.exists functions