fixed script for unix