refactor server api calls into single methods for HepApi