ida: simplified functions for id allocation