This really should be implemented in the juggler or loopback. Touching the juggler internals is pretty fragile.