add basic validation to edges