added split in blocks if files > 500