fixed some stupid stuff and messed around with exceptions which are
blocking debugging