adding standard responses and echoing data on server side