added a wrapper around the api as a module