module: extend module loading process

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>