filter packages by extension