fix logic that checks for excluded processes