make dependency resolver a function
document the API
dedupe cli invocation code