get prioritized dependencies dynamically