added writing tags to blank files