Separated dependency loading from ctrl logic