change run script to work in bash