added setting deferredFactory