The present invention relates to viral polymerase inhibitors of formula (I), salts, N-oxides, solvates, hydrates, racemates, enantiomers or isomers thereof, processes for their preparation and their use in the treatment of Flaviviridae viral infections such as Hepatitis C virus (HCV) infections: