what is an intermediary device