code from mailing list
periodization -> periodic
add basic code to core
basic roundtrip test