simplify the complexity level where possible in Loader::load()