adding tags to the datafiles and directories