fixing issue, adding more debug out