using gsub to remove require tree, which removes trubo links