added switch for system.gc