added command line option
group constraints + replay