improved loading of dependencies when plotting ERDs.