functional, plus added loadDependence script