reading tags from files