added pre and post handlers to conditional group