fix Tor for non-modules