import passthroughoptionparser code from submitfilter