prepared for memory fix, check redirect