raise some exceptions