The present invention provides compounds of formula (II-E) and pharmaceutical compositions thereof that are capable of modulating certain protein kinases such as ERK (MAPK). Also provided are methods of using such compounds or compositions, and methods of using these compositions to modulate the activities of one or more of these kinases, especially for therapeutic applications such as the treatment disorders such as cancer.