further optimize using rawConnection

update `getDependencies`