updated api with new types