refactor plugins
update deps
config in own file
refactor resolve into plugin
support greedy and non greedy resolve