cleaned up SDL threading and API init features