feat: add internal module registry and reference to all modules of a certain type inside the module instance as well as it's instance id. this needs polishing