trying ot resolve incorrect redirect