updated api
Fixed #15