project001: thread safety fix