convert to xmlrpc