make sure output methods work after clear()