minor changes in file acquisition