extract connect.hpp