crude package filter

This is surely not how this is usually done, but at least it works somehow.