update to new lambda api