licence key mechanism