make stn error readable by adding try/except and printing API error msg