added check for value when xml-rpc