bug - remove old data from logs and locks