client side for initial rest stuff