added out filename options to -q flag