xpiler: moved from BufferedWriter to PrintStream