only create temp directory if it doesn't exist yet