added basic id API functionality