fixed script for linux