add auto insert for lua file