add output summary. Change prepare cmd