added chapter/section logging for debug