boost::asio implentation & bugfix