started on a generic rest client