fixed output of cmd and params