debugging nif output