api's now can also be created inside a module