Dynamics Of Capsules In Complex Microfluidic Devices