export utils, waitForRedirect added