implemented dependency resolver to continue after resolving dependency
refactored dependency resolver