reorganize method order to prepare for alternate httpcall implementation