add return value for each command