server side of grine application