fix regtests, add some new flags