implement stub handlers and encode/decode_content_body