a fix for tpa, and ghostfactory