add lock/unlock to valve script