added condition on module extension