read from temp file