initial change to SDL2.0
start migration to sdl2
improve architecture