add header line and intermediate rank options