added processing switch