rendering data to client through json string console log
changes accepted on branch