cached results virker nu
fixed indexing for dictionaries with cpds