fixed loading of local extensions and added language identifier