now with full loop to server for session