fixed; catch duplicate ids errors in server