The present invention relates to compounds of formula I:and pharmaceutically acceptable salts thereof, pharmaceutical compositions comprising the compounds of formula I or their pharmaceutically acceptable salts, and methods of using said compounds, salts and compositions in the treatment of various disorders associated with CRM1 activity.