add sub mod support