Adapt token in different file formats