import optimize, locale loading fix