did some debugging... wasn't really sucessful. I added some while(1); and some error messages