re-introduce remote.py (fix bad imports)