move language file loading to correct hook