added debug output for visualisation proble