add lua snippets for trAIn