changed META to return dict, not list; added filename field