add the logic code for windows client