hopefully fixed profiles tempfile issue