improved handling of dupe key errors
1.0.18