add thead-safe annotations and keep something final.