implement id's, simplify stuff