bring safe mode to the client side