wire now invokes init before factories, calling wire.resolveRef causes a deadlock