disabled redirection and working on impletementing prefereneces