changed runfile to use Tracpy class object