added sub modules, got a working model for custom elements: