factory magic doc