added remote interface (actually a temporary hack, until I can come up with something more "standard")