switch to interpolating the log to make sure everything stays positive; tweaks for using an interpolated potential