xxapi write by cowboy