add AdvancedPrintStream