add -early_exit flag