rewwrite load language function