improved handling of dupe key errors
1.0.16