partial sdl conversion
fixed bridge type bug