add mytags function and split tag file