altered locks to synchronize with GUI updater