add support for 'internal' modules. fix doc show/hid issues