added a lot of debugoutput