added USE_UNICODE setting to connect method