added contexts to perimeter