call wakeUpRts() in the correct place