adds required local context