printContext() improvements