added rudimentary tag lookup