updated web services code