added lock demo, does not work yet though