implement jointopic functionality. This works, but throws some errors into the log still. Should be cleaned up.