enabled debugging code