port client from win to linux