added lock&unlock events