context: reintroduce a homegrown prototype chain