include docoptt lib
fix bug when modifying child list in place would cause problems
cleanup