debugging of JSON header import function