fixed problem with temp file parsing