resolve resource dependecy when installing resources