adds primitive lock
corrects file name
method stub for flipping state