refine the lock of orchestration