new class and function for windows connect