added check for linux