adding a callback for set_dependencies into module Dependencies