added tag relation and resource