changed the way cached modules are loaded, and made __hints.json lookup more flexible