added server intface and stubs