added some WPML support