add filename to encodes