corrected debugging routine and improved status output
everithing is fine now :)