moved redirect_start into client