added combined sweep and file output script