adding redirect to client