added finishing of server