initial code for manual doi minting