initialize the delegate factory before trying to use it