* pass server object as parameter.