fix problem with print; make sure this context is preserved