config: allocate contexts