added option for dropping unused params