build context and put it into registry