added debug short circuit