change into new version of lapps api