extract dependencies in single file