update template for add socket files[lua]