swap polynomial and spline based log functions. compile fixes