fix check for output option