return command values from each command