magic prefix filter, first attempt