move guages api url into own method