"synchronized" file output