added bridge to next map.  added beforeStep script option