updates for linux compatibility