refactor: wrapper around xmlrpc containing token