conditional extension filtering