fixes #1234 (api reverse_id collisions)

fixes #1234 
fixes #1738