switchbacks

Some work on magnetic switchbacks.