additional code snippets for api doc