add code for linux platform