fixed some redirect stuff