add debug URL switching