nicer debug output and comments