add lock for versions