load dependencies before loading an extension
move ApiDoc to a dedicated optional extension