added support for link tags
fixed problem with working with many files