added json call to web server and async calls implementation