allow to inherit settings in child context
improved drawing of borders