bugfixes, debug outputs   - need more fixes!! :D