now documents can have tags and vice-versa