add m4 for trlibs
Add session removal based on ip.