change to file read behaviour