web client api connector and php fixes