getting doc name from the server