check for directory when gereration tags