add support for direct connecting