restore token creation