use return value from wrapped command, closes #2