attempting to fix concurrent insert errors