add --type and --arch filter support