added synchronization for FileIO