updated temp sessions to store data, updated onData fn