script now stops on error