finished implementation of redirects