fixed most shell script