changed string copying in store_token