added debug switch to MAC harvester