modified the module to provide api instead of whole array