building executable script
fixes some errors.