[updated] lua stuff