patch to support scoped modules