cleanup-section streamlined and made it to work for the perl-looper