changes in APIWrapper to manage anonymous requests