added option to internalize external module deps