updated api code and updated modules