added a use-output flag