bungee communication code, untested