separated key from document locking process