extract dependencies