split log consumer and revert script generator