add enable/disable dynamics function