remove extraneous modules