started to implement document locking