load dependencies between subchapters and fix some errors