remove extra modules from import block