expand the lwt api
switch the example