fix logging and update locales