set contexts in registration targets