separted ident from main