When we came from Costa Rica to Montreal, really confusing to get to connection flight. We were told we didn't have to go Out of Secure area. Walked around about 3 miles, to register our boarding pass again into a machine with photo taking, ,. and then they sent us out anyway, and trhen we had to go through security again. If our connecting flight was on time, we would have missed it. All staff on the ground guiding people , didnèt seem to know where the connector passengers were really supposed to go.