externalize some modules