cleanup dependency code.