new visualize mode(not working yet) + some debug output