improved credentials usage in tuntap