autoflush with printwriter