added config for BRIDGE endpoint
fixed small bug of creating bridge endpoint