fix dict access; custom classes work now again