put thread-locking in blockviz api