added location.search check for isStream