check script syntax