boilerplate for stub api