refactored the whole current rates getting system, local setting system