Fixed background json issue, merged old headers code