fixed check for required options.output