add filename attribute