trying to fix issue with debug set to false