update defects in state command