cut out all but the necessary modules