fixed SpaceEx solver; added flag to quickly (de)activate the SpaceEx call