add achieve condition command, a few bug fix