make default redvec a constant, not a function
run slope_odr with switch automatically