thread-safe startup