temp file reader for front end