load API module dependencies before API base dependencies. this should fix an issue where errors will occur if a module is loaded before a module which provides a base on which the first module depends. I realize that is really confusing and incomprehensible, but no one reads my commit explanations anyway.