parse response by cmd type