replace addfilestodirblock to insertInBlocksLinks