fix missing changes to thread-safe api