get redirect working