made by zhouqingkui for lock profile operation.