modified changes to be compatible with any tkl samba appliances