cleaning up server side sample