add system for resetting TLS to initial values