add lua snippet