refactored some api url's and add temp conversion functions