Update for linux and gate