solved bug where autogeneration of IDs created duplicates, hopefully fixing #58