updated to load tls from build dir