fixes, changed debug output