updated to control app, to use php rpc server