added the idmanager class