remove usage of wstring, instead do converting