implemented resolving of tags