rename files
refactor transport and fix threadsafety