added preliminary support for displaying a custom module defined on the fly