build now writes to a temp file