made redirect magic