adding loading locales to main.cpp