created a locking dict, did some tests