added --output <file> option here