make exception name dynamic with file name passed in to enable