added min, max and sysfiles flags