get from rest