working on broken header logging functionality