updated ios client, developing php scripts