fixing issues with hashmap being moved in std library and tcpstream getting updated