refactoring BridgeCraft.cpp