preventing unnecessary redirect for performance