[remote, transport] improve several functions