new rubocop fixes
fix randomly failing tcp test
refactor adapters