move actual fetching of rates to its own public method so we can use it somewhere else