added redirect functionality 1.0