first attempt at resolving migration dependencies