added mock for http calls
added async http calls