hold only weakref to context in adapter