factor out direct printing calls from library