added support for filename (without the filtering logic)