use getitem for more than just dicts