made the subject thread safe, making all API calls thread safe too