The present invention provides chemical entities or compounds and pharmaceutical compositions thereof that are capable of modulating lipid kinases such PB kinases, tryosine kinases and protein kinases such as mTOR. Also provided in the present invention are methods of using these compositions to modulate these kinases especially for therapeutic applications.