optimizations for linux