check for possible redirect