legacy stuff, used by `setupItem`