move motion parameters into its own structure to decouple it from thread_context