add lock for private entries