wrapper around h2o rest calls