improved lang file loading