psudo code 'implementation' of the offline_transport