added code to read from web service