add optional sweep2wake [added missing lines]