fixed gson again
added server logic