moved flattener -> disamb, rewrote disamb so that it preserves id information