update for both linux and window