added id manager

id manager added and implemented,
setup few functions