fixed require issue, fixed issue with updating TOC