reworking how hipchatAPI gets called