another try with temp file