removed redundant test on simpleComponentDefinition
added module based component definition