added loaderFactory and type