added get_currencies function and some iterator