restore the trial of factory and init run function