temp fix for output writing again.. and again