The present invention relates to compounds and methods for treating retroviral infections, HIV, Hepatitis B, and/or HTLV viral infections. Some compounds of the invention are described by formula I:or a pharmaceutically acceptable salt, stereoisomer, a diastereomer, an enantiomer or racemate thereof.