adding server as callback parameter