getting token and sending information