remove lock and update json