updated to LSM new API