more ugly debugging code