turnoff debug, fix redirect option