barrier method for reading in files