The present invention provides a compound of formula I or II or a pharmaceutically acceptable salt form thereof, wherein R 1 , R 2 , R 3 , R 4 , R 5 , A 1 , A 2 , A 3 , A 4 , and A 5 , are as defined herein. The compounds of formula I or II have ALK and/or c-Met inhibitory activity, and may be used to treat proliferative disorders.