add extension filtering functionality