attempt to rewrite CommandConnection using Futures, not very successful yet