added adaptive support for S4 integrator