added generate-token func