script SAT updated
changed flags in main and common.h