How to build a automatic bridge