working first half gconnect... will probably move to serverside flow